package com.hengmei.smallscreen.manager

import com.hengmei.smallscreen.app.MyApp
import com.inuker.bluetooth.library.BluetoothClient
/*
* 蓝牙管理类
* */
class ClientManager {

    private var mClient: BluetoothClient? = null

    fun getClient(): BluetoothClient? {
        if (mClient == null) {
            synchronized(ClientManager::class.java) {
                if (mClient == null) {
                    mClient = BluetoothClient(MyApp.get())
                }
            }
        }
        return mClient
    }

}